#include "NetworkProtocol.h"

NetworkProtocol::NetworkProtocol()
{
	m_pOwnerSocket = 0;
}

NetworkProtocol::~NetworkProtocol()
{
	m_pOwnerSocket = 0;
}

void NetworkProtocol::setTCPSocket(TCPSocket* socket)
{
	m_pOwnerSocket = socket;
}

int NetworkProtocol::consumePacket(const char* buffPacket, const int sizeBuff)
{
	// default behavior: do nothing, all data consumed
	return (int)sizeBuff;
}

int NetworkProtocol::makePacket(char* buffPacket, const int sizeRemain, unsigned int cmd_id, va_list* pargs)
{
	// default behavior: nothing made
	return 0;
}


